package com.ruoyi.basedata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.BdMaterialconfigMapper;
import com.ruoyi.basedata.domain.BdMaterialconfig;
import com.ruoyi.basedata.service.IBdMaterialconfigService;

/**
 * 物料配置Service业务层处理
 * 
 * @author ptt
 * @date 2024-12-09
 */
@Service
public class BdMaterialconfigServiceImpl implements IBdMaterialconfigService 
{
    @Autowired
    private BdMaterialconfigMapper bdMaterialconfigMapper;

    /**
     * 查询物料配置
     * 
     * @param id 物料配置主键
     * @return 物料配置
     */
    @Override
    public BdMaterialconfig selectBdMaterialconfigById(Long id)
    {
        return bdMaterialconfigMapper.selectBdMaterialconfigById(id);
    }

    /**
     * 查询物料配置列表
     * 
     * @param bdMaterialconfig 物料配置
     * @return 物料配置
     */
    @Override
    public List<BdMaterialconfig> selectBdMaterialconfigList(BdMaterialconfig bdMaterialconfig)
    {
        return bdMaterialconfigMapper.selectBdMaterialconfigList(bdMaterialconfig);
    }

    /**
     * 查询物料配置列表
     *
     * @param bdMaterialconfig 物料配置
     * @return 物料配置
     */
    @Override
    public List<BdMaterialconfig> selectBdMaterialconfigList2(BdMaterialconfig bdMaterialconfig)
    {
        return bdMaterialconfigMapper.selectBdMaterialconfigList2(bdMaterialconfig);
    }

    /**
     * 新增物料配置
     * 
     * @param bdMaterialconfig 物料配置
     * @return 结果
     */
    @Override
    public int insertBdMaterialconfig(BdMaterialconfig bdMaterialconfig)
    {
        return bdMaterialconfigMapper.insertBdMaterialconfig(bdMaterialconfig);
    }

    /**
     * 修改物料配置
     * 
     * @param bdMaterialconfig 物料配置
     * @return 结果
     */
    @Override
    public int updateBdMaterialconfig(BdMaterialconfig bdMaterialconfig)
    {
        return bdMaterialconfigMapper.updateBdMaterialconfig(bdMaterialconfig);
    }

    /**
     * 批量删除物料配置
     * 
     * @param ids 需要删除的物料配置主键
     * @return 结果
     */
    @Override
    public int deleteBdMaterialconfigByIds(Long[] ids)
    {
        return bdMaterialconfigMapper.deleteBdMaterialconfigByIds(ids);
    }

    /**
     * 删除物料配置信息
     * 
     * @param id 物料配置主键
     * @return 结果
     */
    @Override
    public int deleteBdMaterialconfigById(Long id)
    {
        return bdMaterialconfigMapper.deleteBdMaterialconfigById(id);
    }
}
